package cn.richard.demo.drools.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Order {
	private double oriPrice; //原价
	private double discountAmt; //满减金额
	private double realPrice; //优化后价格
	
	public void setDiscountAmt(double discountAmt) {
		this.discountAmt = discountAmt;
		this.realPrice = this.oriPrice - this.discountAmt;
	}

	public Order(double oriPrice) {
		this.oriPrice = oriPrice;
	}
}
